#include "table.h"

table::table(QWidget *parent)
	: QWidget(parent)
{
	ui.setupUi(this);
	this->tableModel = new QSqlTableModel;
	this->tableModel->setTable("student");
	ui.tableView->setModel(this->tableModel);
}

table::~table()
{}

void table::on_foundPushButton_clicked()
{
	this->tableModel->select();
}